package com.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobaibai.bo.BargainUserSelect;
import com.xiaobaibai.dao.BargainUserDao;
import com.xiaobaibai.entity.BargainUser;
import com.xiaobaibai.service.IBargainUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-11-02
 */
@Service
public class BargainUserServiceImpl extends ServiceImpl<BargainUserDao, BargainUser> implements IBargainUserService {

    @Override
    public List<BargainUser> getUserBargainList(BargainUserSelect bargainUserSelect) {
        bargainUserSelect.setPageNum(bargainUserSelect.getPageNum()*bargainUserSelect.getPageSize());
        List<BargainUser> userBargainList = this.baseMapper.getUserBargainList(bargainUserSelect);

        return userBargainList;
    }

}
